package com.example.restaurantfinder.model;

import java.io.Serializable;

import com.google.api.client.util.Key;

public class Restaurant implements Serializable {

	 /**
	 * 
	 */
	private static final long serialVersionUID = 933849110096683257L;

	@Key
	    public String id;
	 
	    @Key
	    public String name;
	 
	    @Key
	    public String reference;
	 
	    @Key
	    public String icon;
	 
	    @Key
	    public String vicinity;
	 
	    @Key
	    public Geometry geometry;
	    
	    @Key
	    public double rating;
	    
	    @Key
	    public String url;
	    
	    @Key
	    public String  website;
	    
	   
	    
	 
	    @Key
	    public String formatted_address;
	 
	    @Key
	    public String formatted_phone_number;
	 
	    @Override
	    public String toString() {
	        return name + " - " + id + " - " + reference;
	    }
	 
	    public static class Geometry implements Serializable
	    {
	        @Key
	        public Location location;
	    }
	 
	    public static class Location implements Serializable
	    {
	        @Key
	        public double lat;
	 
	        @Key
	        public double lng;
	    }
	
	
	
}
